package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 大钩载荷计算结果 对应表 CM_FRICTIONDRAG_RESULT
@Table(name = "CM_FRICTIONDRAG_RESULT")
public class CM_FrictiondragResult extends BABaseEntity {
    @Id
    @GenericGenerator(name="cmFrictionDragGenerator", strategy="uuid")
    @GeneratedValue(generator="cmFrictionDragGenerator")
    @Column(name = "CM_FRICTIONDRAG_RESULT_ID")
    private String CM_FrictiondragResult_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "DEPTH")
    private Double depth;

    @Basic
    @Column(name = "WELLDEFLECTION")
    private Double wellDeflection;

    @Basic
    @Column(name = "AZIMUTH")
    private Double azimuth;

    @Basic
    @Column(name = "LOAD")
    private Double load;

    @Basic
    @Column(name = "FRICTION")
    private Double friction;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;

}
